package com.maybach.workflow.common.api.node;


import com.maybach.workflow.common.api.enums.NodeTypeEnum;

/**
 * Created by well on 15/6/9.
 */
public abstract class BaseNode implements java.io.Serializable{

    private String name;
    private String displayName;
    private String to;
    private String parent;

    public abstract NodeTypeEnum getNodeType();

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    @Override
    public String toString() {
        return "BaseNode{" +
                "name='" + name + '\'' +
                ", displayName='" + displayName + '\'' +
                ", to='" + to + '\'' +
                ", parent='" + parent + '\'' +
                '}';
    }
}
